#include <iostream>
#include <unistd.h>
#include <signal.h>
#include <cstdlib>
#include <cstring>
#include <string>
#include <cstdio>

using namespace std;

//void sighander(int signum)
//{
//  printf("process accept a signnum :%d\n", signum);
//}

int main(int argc, char* argv[])
{
  int signum = atoi(argv[1]);
  int pid = atoi(argv[2]);

  kill(pid,-signum);

  //int cnt = 5;

  //while(1)
  //{
  //  printf("I am a process ,pid: %d\n", getpid());
  //  sleep(1);
  //  if(cnt-- == 0) exit(0);
  //}

  return 0;
}
